﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200149D RID: 5277
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UnlockSkilltreeScRsp : IMessage<UnlockSkilltreeScRsp>, IMessage, IEquatable<UnlockSkilltreeScRsp>, IDeepCloneable<UnlockSkilltreeScRsp>, IBufferMessage
	{
		// Token: 0x17004267 RID: 16999
		// (get) Token: 0x0600EBDC RID: 60380 RVA: 0x002761B1 File Offset: 0x002743B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UnlockSkilltreeScRsp> Parser
		{
			get
			{
				return UnlockSkilltreeScRsp._parser;
			}
		}

		// Token: 0x17004268 RID: 17000
		// (get) Token: 0x0600EBDD RID: 60381 RVA: 0x002761B8 File Offset: 0x002743B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UnlockSkilltreeScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004269 RID: 17001
		// (get) Token: 0x0600EBDE RID: 60382 RVA: 0x002761CA File Offset: 0x002743CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UnlockSkilltreeScRsp.Descriptor;
			}
		}

		// Token: 0x0600EBDF RID: 60383 RVA: 0x002761D1 File Offset: 0x002743D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockSkilltreeScRsp()
		{
		}

		// Token: 0x0600EBE0 RID: 60384 RVA: 0x002761D9 File Offset: 0x002743D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockSkilltreeScRsp(UnlockSkilltreeScRsp other) : this()
		{
			this.pointId_ = other.pointId_;
			this.level_ = other.level_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EBE1 RID: 60385 RVA: 0x00276216 File Offset: 0x00274416
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockSkilltreeScRsp Clone()
		{
			return new UnlockSkilltreeScRsp(this);
		}

		// Token: 0x1700426A RID: 17002
		// (get) Token: 0x0600EBE2 RID: 60386 RVA: 0x0027621E File Offset: 0x0027441E
		// (set) Token: 0x0600EBE3 RID: 60387 RVA: 0x00276226 File Offset: 0x00274426
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PointId
		{
			get
			{
				return this.pointId_;
			}
			set
			{
				this.pointId_ = value;
			}
		}

		// Token: 0x1700426B RID: 17003
		// (get) Token: 0x0600EBE4 RID: 60388 RVA: 0x0027622F File Offset: 0x0027442F
		// (set) Token: 0x0600EBE5 RID: 60389 RVA: 0x00276237 File Offset: 0x00274437
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x1700426C RID: 17004
		// (get) Token: 0x0600EBE6 RID: 60390 RVA: 0x00276240 File Offset: 0x00274440
		// (set) Token: 0x0600EBE7 RID: 60391 RVA: 0x00276248 File Offset: 0x00274448
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600EBE8 RID: 60392 RVA: 0x00276251 File Offset: 0x00274451
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UnlockSkilltreeScRsp);
		}

		// Token: 0x0600EBE9 RID: 60393 RVA: 0x00276260 File Offset: 0x00274460
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UnlockSkilltreeScRsp other)
		{
			return other != null && (other == this || (this.PointId == other.PointId && this.Level == other.Level && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EBEA RID: 60394 RVA: 0x002762BC File Offset: 0x002744BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PointId != 0U)
			{
				num ^= this.PointId.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EBEB RID: 60395 RVA: 0x0027632D File Offset: 0x0027452D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EBEC RID: 60396 RVA: 0x00276335 File Offset: 0x00274535
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EBED RID: 60397 RVA: 0x00276340 File Offset: 0x00274540
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Level != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Level);
			}
			if (this.PointId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.PointId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EBEE RID: 60398 RVA: 0x002763B8 File Offset: 0x002745B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PointId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PointId);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EBEF RID: 60399 RVA: 0x00276428 File Offset: 0x00274628
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UnlockSkilltreeScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PointId != 0U)
			{
				this.PointId = other.PointId;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EBF0 RID: 60400 RVA: 0x0027648C File Offset: 0x0027468C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EBF1 RID: 60401 RVA: 0x00276498 File Offset: 0x00274698
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					if (num != 72U)
					{
						if (num != 80U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.PointId = input.ReadUInt32();
					}
				}
				else
				{
					this.Level = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005D56 RID: 23894
		private static readonly MessageParser<UnlockSkilltreeScRsp> _parser = new MessageParser<UnlockSkilltreeScRsp>(() => new UnlockSkilltreeScRsp());

		// Token: 0x04005D57 RID: 23895
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005D58 RID: 23896
		public const int PointIdFieldNumber = 9;

		// Token: 0x04005D59 RID: 23897
		private uint pointId_;

		// Token: 0x04005D5A RID: 23898
		public const int LevelFieldNumber = 8;

		// Token: 0x04005D5B RID: 23899
		private uint level_;

		// Token: 0x04005D5C RID: 23900
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04005D5D RID: 23901
		private uint retcode_;
	}
}
